package com.southwind.springboottest.studykotlin.s1



//TODO 20.Kotlin语言的Nothing类型特点

fun main() {
    show(-1)
}
private fun show(number : Int){
    when(number){
        -1 -> TODO("没有这种分数")
        in 0..59 -> println("分数不及格")
        in 60..70 -> println("分数及格")
        in 71..100 -> println("分数优秀")
    }
}